﻿using Acme.BookStore.AcmeModel;
using Acme.BookStore.AcmeModel.Model;
using Acme.BookStore.Carry;
using Acme.BookStore.Credit;
using Acme.BookStore.Creditor;
using Acme.BookStore.Enum;
using Acme.BookStore.File;
using Acme.BookStore.Lende;
using Acme.BookStore.Line;
using Acme.BookStore.Log;
using Acme.BookStore.Management;
using Acme.BookStore.Pdepat;
using Acme.BookStore.Position;
using Acme.BookStore.Prole;
using Acme.BookStore.Puser;
using Acme.BookStore.Superi;
using Acme.BookStore.Track;
using AutoMapper;

namespace Acme.BookStore
{
    public class BookStoreApplicationAutoMapperProfile : Profile
    {
        public BookStoreApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            //操作员
            CreateMap<PuserInfo, PuserInfoDto>();
            CreateMap<PuserInfos, PuserInfo>();
            //公司名称
            CreateMap<CompanyInfo, CompanyInfoDto>();
            CreateMap<CompanyInfos, CompanyInfo>();
            //角色
            CreateMap<ProleInfo, ProleInfoDto>();
            CreateMap<ProleInfos, ProleInfo>();
            //部门
            CreateMap<PdepatInfo, PdepatInfoDto>();
            CreateMap<PdepatInfos, PdepatInfo>();
            //上级部门
            CreateMap<SuperiInfo, SuperiInfoDto>();
            CreateMap<SuperiInfos, SuperiInfo>();
            //职位
            CreateMap<PositionInfo, PositionInfoDto>();
            CreateMap<PositionInfos, PositionInfo>();
            //枚举
            CreateMap<EnumInfo, EnumInfoDto>();
            CreateMap<EnumInfos, EnumInfo>();
            //上传文件
            CreateMap<UploadInfo, UploadInfoDto>();
            CreateMap<UploadInfos, UploadInfo>();
            //线路管理
            CreateMap<ManagementInfo, ManagementInfoDto>();
            CreateMap<ManagementInfos, ManagementInfo>();
            //贷主管理
            CreateMap<LendeInfo, LendeInfoDto>();
            CreateMap<LendeInfos, LendeInfo>();
            //贷主合同
            CreateMap<CreditorInfo, CreditorInfoDto>();
            CreateMap<CreditorInfos, CreditorInfo>();
            //承运合同跟踪
            CreateMap<TrackInfo, TrackInfoDto>();
            CreateMap<TrackInfos, TrackInfo>();
            //承运合同
            CreateMap<CarryInfo, CarryInfoDto>();
            CreateMap<CarryInfos, CarryInfo>();
            //贷主合同
            CreateMap<CreditInfo, CreditInfoDto>();
            CreateMap<CreditInfos, CreditInfo>();
            //线路
            CreateMap<LineInfo, LineInfoDto>();
            CreateMap<LineInfos, LineInfo>();
            //日志
            CreateMap<LogsInfo, LogsInfoDto>();
            CreateMap<LogsInfos, LogsInfo>();
        }
    }
}
